import 'dart:ui';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mmvm_provider/model/joke_model.dart';

class JokeItem extends StatelessWidget {
  int? index;
  Joke joke;
  JokeItem({Key? key,required int this.index,required this.joke}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(
          left: 15,
          right: 15,
          top: 10,
          bottom: 10
      ),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.end,
        children: [
          Text(joke.content??"",style: TextStyle(color:Colors.black,letterSpacing: 1.5,wordSpacing: 2),),
          SizedBox(height: 5),
          Text(joke.updatetime??'',style: TextStyle(color:Colors.black,letterSpacing: 1.5,wordSpacing: 2),),
        ],
      ),
    );
  }
}
